package com.example.twotwo_project;


import com.example.twotwo_project.Board_Arm;
import com.example.twotwo_project.Board_Back;
import com.example.twotwo_project.Board_Breast;
import com.example.twotwo_project.Board_Leg;
import com.example.twotwo_project.Board_Pilates;
import com.example.twotwo_project.R;
import com.example.twotwo_project.Board_Thigh;
import com.example.twotwo_project.Board_Waist;
import com.example.twotwo_project.Board_Yoga;

import android.support.v7.app.ActionBarActivity;
import android.support.v4.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.Toast;
import android.annotation.SuppressLint;

public class Frag01Activity extends Fragment {
		Context mContext;
		Button button;
		Intent Aintent;
		
		public Frag01Activity(Context context) {
			mContext = context;
		}

		@Override
		public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
			View view = inflater.inflate(R.layout.activity_frag01, container, false);
			
			Button button1, button2, button3, button4, button5, button6, button7, button8;
			button1 = (Button) view.findViewById(R.id.button1);
			button2 = (Button) view.findViewById(R.id.button2);
			button3 = (Button) view.findViewById(R.id.button3);
			button4 = (Button) view.findViewById(R.id.button4);
			button5 = (Button) view.findViewById(R.id.button5);
			button6 = (Button) view.findViewById(R.id.button6);
			button7 = (Button) view.findViewById(R.id.button7);
			button8 = (Button) view.findViewById(R.id.button8);
			button1 = (Button) view.findViewById(R.id.button1);
			
			button1.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Aintent = new Intent(getActivity(), Board_Breast.class);
					startActivity(Aintent);
				}
	    	});
			button2.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Arm.class);
					startActivity(Aintent);
				}
	    	});
			button3.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Back.class);
					startActivity(Aintent);
				}
	    	});
			button4.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Waist.class);
					startActivity(Aintent);
				}
	    	});
			button5.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Leg.class);
					startActivity(Aintent);
				}
	    	});
			button6.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Thigh.class);
					startActivity(Aintent);
				}
	    	});
			button7.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Yoga.class);
					startActivity(Aintent);
				}
	    	});
			button8.setOnClickListener(new OnClickListener() {
				@Override
				public void onClick(View v) {
					Aintent = new Intent(getActivity(), Board_Pilates.class);
					startActivity(Aintent);
				}
	    	});
			
	    	return view;
		}
}

